

#include <iostream>
#include <iomanip>

#include "Reference.h"

using std::cout;
using std::endl;

int main (int argc, char * const argv[]) 
{  
 
/* Creation of three objects instance of the class Reference named r1, r2 and r3 */
 Reference* r1 = new Reference ();
 Reference* r2 = new Reference ();
 Reference* r3 = new Reference ();
 
 /* Test of the funcion "print", testing thus the following functions : { "getId", "getAuthor", "getTitle" and "getYearOfPublicaton" }*/
 cout << "* Let's test the reference's data members by giving them their default values, then we find : " <<endl;
 r1->print();
 r2->print();
 r3->print();
 
 r1->setId(5427);
 r1->setYearOfPublication(1975);
 r1->setAuthor(" Hamza SHAWY ");
 r1->setTitle(" THE MYSTERIOUS KNOWLEDGE  "); 
 r2->setId(01654);
 r2->setYearOfPublication(1989);
 r2->setAuthor(" Jonathan SCHRODER ");
 r2->setTitle(" HIGH HOPES ");
 r3->setId(3069);
 r3->setYearOfPublication(2002);
 r3->setAuthor(" Issa FORTIN ");
 r3->setTitle(" THEIR PARADISE  ");
 cout << "* Then, let's give values to the attributs of the class REFERENCE ! We find thus : " <<endl;
 r1->print();
 r2->print();
 r3->print();

#ifdef WIN32
 system("PAUSE");
#endif
 
 return 0;
 }
